package com.hp.dao;

import com.hp.entity.Link;
import com.hp.entity.books;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface BookDao {

    /**
     * 查询所有
     * @return
     * @throws Exception
     */
    public List<books> findAll()throws Exception;

    /**
     * 删除
     * @param id
     * @return
     * @throws Exception
     */
    public void deleteById(String id)throws Exception;

    /**
     * 修改
     * @param book
     * @throws Exception
     */
    public int update(books book)throws Exception;

    public int add(books book)throws Exception;
    /**
     * 修改类型
     * @param
     * @return
     * @throws Exception
     */
    public books findByIdLink(String bookid)throws Exception;

}

